package com.nuoniu.sibanyun.service.erp.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.erp.ImplementInfo;
import com.nuoniu.sibanyun.mapper.erp.ImplementInfoMapper;
import com.nuoniu.sibanyun.service.erp.IImplementInfoService;
import com.nuoniu.sibanyun.userThread.UserThreadLocal;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 贯标实施书 服务实现类
 * </p>
 *
 * @author 小啊刚
 * @since 2021-01-06
 */
@Service
public class ImplementInfoServiceImpl extends ServiceImpl<ImplementInfoMapper, ImplementInfo> implements IImplementInfoService {

    @Override
    public List<ImplementInfo> getList(Integer type) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("type", type);
        wrapper.eq("company_id", UserThreadLocal.get().getCompanyId());
        return list(wrapper);
    }
}
